﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ue.Qcdz.Domain.UrlRewriter
{
    public interface IReWrittenUrl
    {
        /// <summary>
        /// 根据正则表达式判断url是否为重写url
        /// </summary>
        /// <param name="url">要是行判断的url</param>
        /// <returns>是否为重写过的url</returns>
        bool IsMatch(string path);

        /// <summary>
        /// 将重写后的Url转换成实际访问网址
        /// </summary>
        /// <param name="url">重写后的url.Path</param>
        /// <param name="query">url.Query </param>
        /// <returns>实际访问Url</returns>
        string Convert(string path, string query);
    }
}
